package Assignment.Test4;

public class Test {
    public static void main(String[] args) {
        //在控制台输出”HelloWorld”
        Outer.method().show();
    }
}

interface Inter {
    void show();
}

class Outer {
    public static Inter method() {
        return new Inter() {
            @Override
            public void show() {
                System.out.println("HelloWorld");
            }
        };

    }
}
